package com.dc.business.datacollectbusiness.mapper;

import com.dc.business.datacollectbusiness.entity.Company;
import com.dc.business.datacollectbusiness.entity.Factories;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FactoriesMapper {
    /**
     * 查询公司下的厂区
     */
    public List<Factories> selectAllFactoryByCompanyId(Integer companyId);
    /**
     * 删除厂区
     */
    public boolean deleteFactoriesById(int factoryId);
    /**
     * 添加厂区
     */
    public boolean insertFactories(Factories factories);
    /**
     * 修改厂区
     */
    public boolean updateFactories(Factories factories);

    /**
     * 修改厂区孩子
     */
    public boolean updateFactories2(Factories factories);
}
